/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2022-01-24 11:12:33
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-26 14:01:00
 */

import { UserInfo } from '/#/store';

/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  username: string;
  password: string;
}

export interface RoleInfo {
  roleName: string;
  value: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  userId: string | number;
  token: string;
  role?: RoleInfo;
}

// export interface UserInfo{
//   admin_user_id: number | string;
//   create_time: string;
//   password: string;
//   update_time: string;
//   user_name: string;
// }

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  roles?: RoleInfo[];
  // // 用户id
  // userId: string | number;
  // // 用户名
  // username: string;
  // // 真实名字
  // realName: string;
  // // 头像
  // avatar: string;
  // // 介绍
  // desc?: string;
  userInfo: UserInfo;
}
export interface UpdateAdminFormParams {
  user_name: string | number;
  password: string | number;
}
export interface UpdateAdminParams {
  form: UpdateAdminFormParams;
}
